package androcr.client.mobile.exceptions;

public class MyJSONException extends Exception {
	private static final long serialVersionUID = -8041115060388762110L;

	public static final String IMG_ERROR = "Could not process input image."; //TODO server:..
	public static final String IO_ERROR = "Server IO error.";
	public static final String PUT_ERROR = "Server error.";
	public static final String REQUEST_ERROR = "Request error.";

	public static final String DEF_ERROR = "Error";
	public static final String NO_RECOGNIZED_TEXT = "Text not recognized";

	public static final String HTTP_ERROR = "HTTP error. Check your internet connection."; //TODO check if server exists

	public static final String CAMERA_ERROR = "Could not resume camera activity.";
	
	private String  message;
	
	public MyJSONException(String msg) {
		message = msg;
	}
	
	public String getMessage(){
		return message;
	}

}
